<p><?= $this->App->buttonLink('+ Nova cena', '/mount_prices/create') ?></p>
<?= $this->element('entity_table', array(
    'columns' => array(
        'Id'            => 'MountPrice.id',
        'Datum'         => array('MountPrice.date', function($row) {
            return date_local($row['MountPrice']['date']); 
        }),
        'Cena'  => array('MountPrice.value', function($row) {
            return currency_format($row['MountPrice']['value']) . ' ' . CURRENCY_SIGN;
        })
    ),
    'columnWidth' => array(
        'Id'    => '1%',
        'Datum' => '15%',
        'Cena'  => '15%'
    ),
    'links' => array(
        'Datum' => array('/mount_prices/edit/%d', 'MountPrice.id')
    ),
    'filter' => array(
        'Datum' => ''.@$filter['MountPrice']['date'],
        'Kurs'  => ''.@$filter['MountPrice']['value']
    ),
    'data'     => $prices,
    'id'       => 'MountPrice.id',
    'entity'   => 'mount_prices',
    'sort_by'  => $sort_by,
    'sort_dir' => $sort_dir
)) ?>
